<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs"
Inherits="WebApplication14.WebForm4" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>User Defined Exception Handling</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Exception Handling Demo</h2>
<asp:TextBox ID="InputTextBox" runat="server" Placeholder="Enter a
number" />
<asp:Button ID="SubmitButton" runat="server" Text="Submit"
OnClick="SubmitButton_Click" />
<br />
<asp:Label ID="ResultLabel" runat="server" Text=""></asp:Label>
</div>
</form>
</body>
</html>